package com.springboot.jwt.config;

/**
 * @ClassName TokenException
 * @Description
 * @Author zyj
 * @Date 2023/5/29 16:49
 * @Version 1.0
 **/
public class TokenException extends Exception  {

    private String errorCode;
    private String errorMsg;

    public TokenException(){}

    public TokenException(String errorCode, String errorMsg){
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
